<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/ms-tags" prefix="ms"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html>

<head>
	<c:import url="/common/base-hplus-list.jsp" />
	<script type="text/javascript" src="/js/system/user/t-mgt-user-list.js?v=${version }"></script>
</head>

<body>
  <form action="list.do" method="post" class="form-inline">
		<div class="ibox-content divSearchList" id="divSearchList">
			<div class="form-group">
				<ms:input name="userId" value="${userId }" placeholder="用户ID" dataMark="*%" cssClass="input-sm form-control" />
			</div>
			<div class="form-group">
				<ms:input name="userName" value="${userName }" placeholder="用户名称" dataMark="*%" cssClass="input-sm form-control" />
			</div>
			<div class="form-group">
				<button id="btnListQuery" type="submit" class="btn btn-sm btn-primary">搜索</button>	
				<button type="button" class="btn btn-success btn-sm" onclick="toAdd();">添加</button>
			</div>
		</div>
		
		
		<div class="ibox-content">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th style="width: 10%" id="USER_ID">用户ID</th>
						<th style="width: 15%" id="USER_NAME">用户名称</th>
						<th style="width: 15%">操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="entity" items="${pl.list}" varStatus="s">
						<tr>
							<td style="text-align: left">${entity.userId}</td>
							<td style="text-align: left">${entity.userName}</td>
							<td style="text-align: center">
								<button type="button" class="btn btn-primary btn-sm" onClick="toSetRoles('${entity.id}');">设置权限</button>
								<button type="button" class="btn btn-sm btn-primary" onClick="toResetPass('${entity.id}');">重置密码</button>
								<button type="button" class="btn btn-primary btn-sm" onClick="toAdd('${entity.id}');">修改</button>
								<button type="button" class="btn btn-danger btn-sm" onClick="toDelete('${entity.id}');">删除</button>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<!-- 翻页 -->
			<c:import url="/public/include/changePage.jsp" />
		</div>

	</form>

	<c:import url="/common/chosen-select.jsp" />

</body>
</html>

